import request from '@/utils/request'

// 查询房屋信息列表
export function listAHousing(query) {
  return request({
    url: '/system/aHousing/list',
    method: 'get',
    params: query
  })
}

// 查询房屋信息详细
export function getAHousing(id) {
  return request({
    url: '/system/aHousing/' + id,
    method: 'get'
  })
}

export function sendInforBtn(id) {
  return request({
    url: '/system/aHousing/sendInforBtn/' + id,
    method: 'get'
  })
}


// 新增房屋信息
export function addAHousing(data) {
  return request({
    url: '/system/aHousing',
    method: 'post',
    data: data
  })
}

// 修改房屋信息
export function updateAHousing(data) {
  return request({
    url: '/system/aHousing',
    method: 'put',
    data: data
  })
}

// 删除房屋信息
export function delAHousing(id) {
  return request({
    url: '/system/aHousing/' + id,
    method: 'delete'
  })
}

// 逻辑删除房屋信息
export function logicDelAHousing(id) {
  return request({
    url: '/system/aHousing/logicDel/' + id,
    method: 'delete'
  })
}

// 删除房屋信息
export function updateAHousingTime(id) {
  return request({
    url: '/system/aHousing/updaTime' + id,
    method: 'get'
  })
}
